package Shared;

public class Journal{
	public String content, name, division, nurse, doctor, patient;

	public Journal(String name, String division, String doctor, String nurse,
			String patient, String content) {
		this(name + "|" + division + "|" + doctor + "|" + nurse + "|" + patient + "|" + content);
	}
	
	public Journal(String journal){
		String[] split = journal.split("\\|");
		this.name = split[0];
		this.division = split[1];
		this.doctor = split[2];
		this.nurse = split[3];
		this.patient = split[4];
		this.content = split[5];
	}
	
	@Override
	public String toString(){
		return name + "|" + division + "|" + doctor + "|" + nurse + "|" + patient + "|" + content;
	}
}
